Returns a string with the old file name extension replaced by a new extension. Also available as a native function in Visual FoxPro.
Syntax
ForceExt(cFilename, cExtension)
cFilename
Specifies the file name (with or without a path or extension) which will get a new extension.
cExtension
Specifies the new extension (without a period) for cFilename.
Return Type
Character